cargo.git
11 years agoRebuild files if target directory is corrupt
Alex Crichton [Mon, 8 Dec 2014 22:50:16 +0000 (14:50 -0800)]
Rebuild files if target directory is corrupt

If manual modifications have been made or if cargo/rustc died for some sort of
error, then we don't consider a target as being fresh. If any of the files
output by a target don't end up existing in the target directory (even if the
fingerprint says they do), then we consider the target not fresh.

cc #986

11 years agoauto merge of #1019 : alexcrichton/cargo/issue-991, r=brson
bors [Mon, 8 Dec 2014 21:19:01 +0000 (21:19 +0000)]
auto merge of #1019 : alexcrichton/cargo/issue-991, r=brson

It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991

11 years agoauto merge of #1018 : jakub-/cargo/cargo-search-api-token, r=alexcrichton
bors [Mon, 8 Dec 2014 21:03:01 +0000 (21:03 +0000)]
auto merge of #1018 : jakub-/cargo/cargo-search-api-token, r=alexcrichton

11 years agoauto merge of #1009 : jmesmon/cargo/err-msg-fix, r=alexcrichton
bors [Mon, 8 Dec 2014 20:16:19 +0000 (20:16 +0000)]
auto merge of #1009 : jmesmon/cargo/err-msg-fix, r=alexcrichton

Updates an error message

11 years agoDo not require an API token for `cargo search`
Jakub Bukaj [Sun, 7 Dec 2014 20:25:32 +0000 (15:25 -0500)]
Do not require an API token for `cargo search`

11 years agoUpdate to latest Rust
Jakub Bukaj [Sun, 7 Dec 2014 20:24:36 +0000 (15:24 -0500)]
Update to latest Rust

11 years agoauto merge of #989 : jbcrail/cargo/fix-doc-spelling, r=steveklabnik
bors [Mon, 8 Dec 2014 19:36:21 +0000 (19:36 +0000)]
auto merge of #989 : jbcrail/cargo/fix-doc-spelling, r=steveklabnik

I just made minor corrections.

11 years agoauto merge of #1010 : alexcrichton/cargo/mingw, r=brson
bors [Mon, 8 Dec 2014 19:19:38 +0000 (19:19 +0000)]
auto merge of #1010 : alexcrichton/cargo/mingw, r=brson

This prevents having mismatches between bundled libs and libs on the system
(Cargo requires MinGW to compile regardless).

11 years agoBump libgit2 dep to hopefully fix win32
Alex Crichton [Mon, 8 Dec 2014 17:04:19 +0000 (09:04 -0800)]
Bump libgit2 dep to hopefully fix win32

11 years agoFix updating the registry too often
Alex Crichton [Mon, 8 Dec 2014 06:25:26 +0000 (22:25 -0800)]
Fix updating the registry too often

It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991

11 years agoDelete bundled gcc libs on windows
Alex Crichton [Thu, 4 Dec 2014 06:57:06 +0000 (22:57 -0800)]
Delete bundled gcc libs on windows

This prevents having mismatches between bundled libs and libs on the system
(Cargo requires MinGW to compile regardless).

11 years agoauto merge of #1008 : jmesmon/cargo/custom_build_kind, r=alexcrichton
bors [Thu, 4 Dec 2014 05:44:10 +0000 (05:44 +0000)]
auto merge of #1008 : jmesmon/cargo/custom_build_kind, r=alexcrichton

This is just to support some nice environment aliases in gcc-rs at the moment.

11 years agocustom_build: add the HOST environment variable
Cody P Schafer [Wed, 3 Dec 2014 18:09:46 +0000 (13:09 -0500)]
custom_build: add the HOST environment variable

11 years agoauto merge of #990 : alexcrichton/cargo/update-blows-up, r=brson
bors [Thu, 4 Dec 2014 02:44:10 +0000 (02:44 +0000)]
auto merge of #990 : alexcrichton/cargo/update-blows-up, r=brson

This is the same as the fix for #951 (fixed by #965). The relevant code was
erroneously looking at the source id when it should instead look at the entire
package id (name/version/source).

11 years agoauto merge of #997 : alexcrichton/cargo/issue-993-attempt, r=brson
bors [Wed, 3 Dec 2014 22:14:13 +0000 (22:14 +0000)]
auto merge of #997 : alexcrichton/cargo/issue-993-attempt, r=brson

If a submodule's head commit doesn't exist, then we should attempt to update it
rather than aborting the updating process. This commit moves a local `try!` into
a `and_then` closure to prevent returning from the outer function to hopefully
catch more cases where the submodule needs to be updated.

cc #993, but I'm not sure if this fixes it

11 years agoWe're cargo, not rustc
Cody P Schafer [Wed, 3 Dec 2014 20:05:32 +0000 (15:05 -0500)]
We're cargo, not rustc

11 years agoauto merge of #1003 : jmesmon/cargo/update-for-nightly, r=alexcrichton
bors [Wed, 3 Dec 2014 07:59:15 +0000 (07:59 +0000)]
auto merge of #1003 : jmesmon/cargo/update-for-nightly, r=alexcrichton

I'm a bit shaky on the profile.rs changes (`thread_local!` and `RefCell` relplacing `local_data_key!`), do make sure I haven't royally screwed something up there.

11 years agoUpdate for nightly
Cody P Schafer [Tue, 2 Dec 2014 03:11:20 +0000 (22:11 -0500)]
Update for nightly

I'm a bit shaky on the profile.rs changes (`thread_local!` and `RefCell`
relplacing `local_data_key!`), do make sure I haven't royally screwed
something up there.

Note that I haven't sucessfully run the various test_cargo_cross_compile
tests as I don't have an i686-unknown-linux-gnu rustc sitting around.

11 years agoauto merge of #1000 : jbranchaud/cargo/add-semicolon-to-hello-world-in-docs, r=alexcr...
bors [Tue, 2 Dec 2014 08:14:14 +0000 (08:14 +0000)]
auto merge of #1000 : jbranchaud/cargo/add-semicolon-to-hello-world-in-docs, r=alexcrichton

Both the `index.md` and `guide.md` files show the hello world program source
(generated by `cargo new`) without a semicolon (`;`) at the end of the
`println!` line. The file generated by `cargo new` does and should have a
semicolon. This commit brings the docs in sync with the generated code.

11 years agoAdd a missing semicolon to the hello world program in the docs.
jbranchaud [Tue, 2 Dec 2014 02:09:44 +0000 (20:09 -0600)]
Add a missing semicolon to the hello world program in the docs.

Both the `index.md` and `guide.md` files show the hello world program source
(generated by `cargo new`) without a semicolon (`;`) at the end of the
`println!` line. The file generated by `cargo new` does and should have a
semicolon. This commit brings the docs in sync with the generated code.

11 years agoauto merge of #995 : alexcrichton/cargo/issue-808, r=huonw
bors [Sun, 30 Nov 2014 08:14:16 +0000 (08:14 +0000)]
auto merge of #995 : alexcrichton/cargo/issue-808, r=huonw

Closes #808

11 years agoBump version number to 0.1.0
Alex Crichton [Sun, 30 Nov 2014 06:11:33 +0000 (22:11 -0800)]
Bump version number to 0.1.0

Closes #808

11 years agoDon't abort on possibly-corrupt submodules
Alex Crichton [Sun, 30 Nov 2014 07:40:08 +0000 (23:40 -0800)]
Don't abort on possibly-corrupt submodules

If a submodule's head commit doesn't exist, then we should attempt to update it
rather than aborting the updating process. This commit moves a local `try!` into
a `and_then` closure to prevent returning from the outer function to hopefully
catch more cases where the submodule needs to be updated.

cc #993, but I'm not sure if this fixes it

11 years agoauto merge of #996 : alexcrichton/cargo/issue-953, r=huonw
bors [Sun, 30 Nov 2014 06:59:15 +0000 (06:59 +0000)]
auto merge of #996 : alexcrichton/cargo/issue-953, r=huonw

Closes #953

11 years agoLink logo to the main crates.io page
Alex Crichton [Sun, 30 Nov 2014 06:13:51 +0000 (22:13 -0800)]
Link logo to the main crates.io page

Closes #953

11 years agoHandle updates to version requirements in lockfiles
Alex Crichton [Thu, 27 Nov 2014 23:49:16 +0000 (15:49 -0800)]
Handle updates to version requirements in lockfiles

This is the same as the fix for #951 (fixed by #965). The relevant code was
erroneously looking at the source id when it should instead look at the entire
package id (name/version/source).

11 years agoauto merge of #988 : Gekkio/cargo/zsh-run-normal-args, r=alexcrichton
bors [Thu, 27 Nov 2014 20:59:12 +0000 (20:59 +0000)]
auto merge of #988 : Gekkio/cargo/zsh-run-normal-args, r=alexcrichton

Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".

11 years agoFix spelling in documentation.
Joseph Crail [Thu, 27 Nov 2014 20:57:30 +0000 (15:57 -0500)]
Fix spelling in documentation.

11 years agoZSH normal completion for args in "cargo run -- <args>"
Joonas Javanainen [Thu, 27 Nov 2014 17:00:12 +0000 (19:00 +0200)]
ZSH normal completion for args in "cargo run -- <args>"

Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".

11 years agoauto merge of #981 : steveklabnik/cargo/remove_color, r=alexcrichton
bors [Tue, 25 Nov 2014 21:59:15 +0000 (21:59 +0000)]
auto merge of #981 : steveklabnik/cargo/remove_color, r=alexcrichton

this version doesn't actually work. Let's make them real.

http://www.reddit.com/r/programming/comments/2mwidh/rusts_central_package_repository_is_up/cm8l8yr?context=3

11 years agoremove references to color
Steve Klabnik [Tue, 25 Nov 2014 21:34:53 +0000 (16:34 -0500)]
remove references to color

this version doesn't actually work. Let's make them real.

http://www.reddit.com/r/programming/comments/2mwidh/rusts_central_package_repository_is_up/cm8l8yr?context=3

11 years agoauto merge of #974 : alexcrichton/cargo/issue-940, r=wycats
bors [Tue, 25 Nov 2014 17:44:19 +0000 (17:44 +0000)]
auto merge of #974 : alexcrichton/cargo/issue-940, r=wycats

This key will support projects with nonstandard licenses and the registry will
display the license as "nonstandard".

Closes #940

11 years agoAdd support for a license-file manifest key
Alex Crichton [Tue, 25 Nov 2014 06:18:54 +0000 (22:18 -0800)]
Add support for a license-file manifest key

This key will support projects with nonstandard licenses and the registry will
display the license as "nonstandard".

Closes #940

11 years agoauto merge of #973 : alexcrichton/cargo/issue-968, r=huonw
bors [Tue, 25 Nov 2014 06:44:17 +0000 (06:44 +0000)]
auto merge of #973 : alexcrichton/cargo/issue-968, r=huonw

Closes #968

11 years agoauto merge of #972 : alexcrichton/cargo/issue-969, r=huonw
bors [Tue, 25 Nov 2014 05:59:18 +0000 (05:59 +0000)]
auto merge of #972 : alexcrichton/cargo/issue-969, r=huonw

Closes #969

11 years agoPrint the right URL for `cargo login`
Alex Crichton [Tue, 25 Nov 2014 05:50:14 +0000 (21:50 -0800)]
Print the right URL for `cargo login`

Closes #968

11 years agoSupport documenting a selective package
Alex Crichton [Tue, 25 Nov 2014 05:34:05 +0000 (21:34 -0800)]
Support documenting a selective package

11 years agoauto merge of #965 : alexcrichton/cargo/issue-951, r=brson
bors [Tue, 25 Nov 2014 04:02:32 +0000 (04:02 +0000)]
auto merge of #965 : alexcrichton/cargo/issue-951, r=brson

When applying the lockfile to a resolve graph, we need to take into account that
the listed source of dependencies can change over time, in which case we cannot
lock to the previous version but instead need to continue onwards with updating
the listed source.

Closes #951

11 years agoauto merge of #947 : alexcrichton/cargo/issue-937, r=brson
bors [Tue, 25 Nov 2014 03:44:51 +0000 (03:44 +0000)]
auto merge of #947 : alexcrichton/cargo/issue-937, r=brson

The logic for "not recursing into `target`" was pretty hokey and needed
replacement. This commit also unfies the paths a bit to ensure that the main
loop is the same part that adds the root package itself.

This reorganization ends up closing #937

11 years agoauto merge of #941 : alexcrichton/cargo/issue-927, r=brson
bors [Tue, 25 Nov 2014 03:16:13 +0000 (03:16 +0000)]
auto merge of #941 : alexcrichton/cargo/issue-927, r=brson

Closes #927

11 years agoClean up code around the crawling of a directory
Alex Crichton [Fri, 21 Nov 2014 20:31:00 +0000 (12:31 -0800)]
Clean up code around the crawling of a directory

The logic for "not recursing into `target`" was pretty hokey and needed
replacement. This commit also unfies the paths a bit to ensure that the main
loop is the same part that adds the root package itself.

This reorganization ends up closing #937

11 years agoDon't fail `cargo login` if `~/.cargo` doesn't exist
Alex Crichton [Fri, 21 Nov 2014 03:14:58 +0000 (19:14 -0800)]
Don't fail `cargo login` if `~/.cargo` doesn't exist

Closes #927

11 years agoauto merge of #946 : alexcrichton/cargo/issue-933, r=brson
bors [Tue, 25 Nov 2014 00:18:58 +0000 (00:18 +0000)]
auto merge of #946 : alexcrichton/cargo/issue-933, r=brson

Some workspaces, such as windows, often have the home directory not in the
hierarchy of where projects live, which means that configuration may not work by
default. The home directory, however, is already singled out for `cargo login`
and it's pretty semantically special, so this commit ensures that we always look
at the home directory for configuration if it exists.

Closes #933

11 years agoauto merge of #944 : alexcrichton/cargo/test-some-packages, r=brson
bors [Tue, 25 Nov 2014 00:00:54 +0000 (00:00 +0000)]
auto merge of #944 : alexcrichton/cargo/test-some-packages, r=brson

The `target` directory was erroneously being used from the crate root rather
than the root of the package directory itself, leading to packages not actually
testing what's precisely being published.

11 years agoauto merge of #939 : alexcrichton/cargo/issue-38, r=brson
bors [Mon, 24 Nov 2014 23:34:34 +0000 (23:34 +0000)]
auto merge of #939 : alexcrichton/cargo/issue-38, r=brson

This ensures that the registry understands whether dependencies are build
dependencies or dev dependencies.

Closes rust-lang/crates.io#38

11 years agoUpload dependency kinds to the registry
Alex Crichton [Fri, 21 Nov 2014 02:17:31 +0000 (18:17 -0800)]
Upload dependency kinds to the registry

This ensures that the registry understands whether dependencies are build
dependencies or dev dependencies.

Closes rust-lang/crates.io#38

11 years agoauto merge of #936 : alexcrichton/cargo/issue-923, r=brson
bors [Mon, 24 Nov 2014 22:59:26 +0000 (22:59 +0000)]
auto merge of #936 : alexcrichton/cargo/issue-923, r=brson

Closes #923

11 years agoauto merge of #919 : alexcrichton/cargo/issue-915, r=brson
bors [Mon, 24 Nov 2014 21:50:35 +0000 (21:50 +0000)]
auto merge of #919 : alexcrichton/cargo/issue-915, r=brson

Like the old build command, this commit adds support for executables run by
cargo (and tests) to ensure that `-L` paths for a dynamic library are added to
LD_LIBRARY_PATH after a compilation is run.

Closes #915

11 years agoauto merge of #918 : alexcrichton/cargo/issue-912, r=brson
bors [Mon, 24 Nov 2014 19:14:30 +0000 (19:14 +0000)]
auto merge of #918 : alexcrichton/cargo/issue-912, r=brson

This forgot to take into account the logic from some other locations, so I added
a helper method!

Closes #912

11 years agoauto merge of #959 : jakub-/cargo/cargo-search, r=alexcrichton
bors [Mon, 24 Nov 2014 16:29:34 +0000 (16:29 +0000)]
auto merge of #959 : jakub-/cargo/cargo-search, r=alexcrichton

This will currently call out to the registry service. In the future it may be sensible to add package descriptions to the git index so that search can be done offline.

Closes https://github.com/rust-lang/cargo/issues/925.

11 years agoAdd a `search` command to cargo
Jakub Bukaj [Sat, 22 Nov 2014 14:36:14 +0000 (09:36 -0500)]
Add a `search` command to cargo

11 years agoauto merge of #964 : carols10cents/cargo/patch-1, r=alexcrichton
bors [Mon, 24 Nov 2014 02:29:34 +0000 (02:29 +0000)]
auto merge of #964 : carols10cents/cargo/patch-1, r=alexcrichton

I expected the comment about the whitelist to say where you could find the whitelist. This mirrors the information given in the error message if you specify an invalid license identifier.

I didn't make this a markdown link since it's within markdown within code within markdown, but I'm happy to edit this in any way you see fit.

Thank you!! :heart:

11 years agoFix the root output directory when cleaning examples
Alex Crichton [Thu, 20 Nov 2014 04:36:26 +0000 (20:36 -0800)]
Fix the root output directory when cleaning examples

This forgot to take into account the logic from some other locations, so I added
a helper method!

Closes #912

11 years agoTest source equality when locking dependencies
Alex Crichton [Mon, 24 Nov 2014 01:46:04 +0000 (17:46 -0800)]
Test source equality when locking dependencies

When applying the lockfile to a resolve graph, we need to take into account that
the listed source of dependencies can change over time, in which case we cannot
lock to the previous version but instead need to continue onwards with updating
the listed source.

Closes #951

11 years agoauto merge of #956 : jakub-/cargo/newest-rust, r=alexcrichton
bors [Sun, 23 Nov 2014 22:44:33 +0000 (22:44 +0000)]
auto merge of #956 : jakub-/cargo/newest-rust, r=alexcrichton

11 years agoUpdate to newest Rust
Jakub Bukaj [Sat, 22 Nov 2014 10:04:40 +0000 (05:04 -0500)]
Update to newest Rust

11 years agoPoint to spdx.org/licenses in license field docs
Carol (Nichols || Goulding) [Sun, 23 Nov 2014 01:02:24 +0000 (20:02 -0500)]
Point to spdx.org/licenses in license field docs

I expected the comment about the whitelist to say where you could find the whitelist. This mirrors the information given in the error message if you specify an invalid license identifier.

11 years agoSpecifically look in the home dir for configuration
Alex Crichton [Fri, 21 Nov 2014 17:36:18 +0000 (09:36 -0800)]
Specifically look in the home dir for configuration

Some workspaces, such as windows, often have the home directory not in the
hierarchy of where projects live, which means that configuration may not work by
default. The home directory, however, is already singled out for `cargo login`
and it's pretty semantically special, so this commit ensures that we always look
at the home directory for configuration if it exists.

Closes #933

11 years agoEnsure crates are tested after packaged
Alex Crichton [Fri, 21 Nov 2014 06:48:18 +0000 (22:48 -0800)]
Ensure crates are tested after packaged

The `target` directory was erroneously being used from the crate root rather
than the root of the package directory itself, leading to packages not actually
testing what's precisely being published.

11 years agoDon't require a manifest for `cargo owner` commands
Alex Crichton [Fri, 21 Nov 2014 00:08:01 +0000 (16:08 -0800)]
Don't require a manifest for `cargo owner` commands

11 years agoauto merge of #922 : steveklabnik/cargo/patch-1, r=alexcrichton
bors [Thu, 20 Nov 2014 19:29:22 +0000 (19:29 +0000)]
auto merge of #922 : steveklabnik/cargo/patch-1, r=alexcrichton

11 years agofix capitalization in build script docs
Steve Klabnik [Thu, 20 Nov 2014 19:07:13 +0000 (14:07 -0500)]
fix capitalization in build script docs

11 years agoauto merge of #913 : jmesmon/cargo/forgive-wierd-triples, r=alexcrichton
bors [Thu, 20 Nov 2014 17:44:22 +0000 (17:44 +0000)]
auto merge of #913 : jmesmon/cargo/forgive-wierd-triples, r=alexcrichton

11 years agoauto merge of #920 : CMGS/cargo/master, r=eerden
bors [Thu, 20 Nov 2014 16:29:25 +0000 (16:29 +0000)]
auto merge of #920 : CMGS/cargo/master, r=eerden

when I use this script in oh-my-zsh, it will raise an error, so I modified it..

11 years agobug fix for oh-my-zsh
CMGS [Thu, 20 Nov 2014 06:50:26 +0000 (14:50 +0800)]
bug fix for oh-my-zsh

11 years agodl-snapshot: be more forgiving to triples
Cody P Schafer [Mon, 17 Nov 2014 02:35:19 +0000 (21:35 -0500)]
dl-snapshot: be more forgiving to triples

11 years agoPut -L paths from scripts are in LD_LIBRARY_PATH
Alex Crichton [Thu, 20 Nov 2014 04:48:32 +0000 (20:48 -0800)]
Put -L paths from scripts are in LD_LIBRARY_PATH

Like the old build command, this commit adds support for executables run by
cargo (and tests) to ensure that `-L` paths for a dynamic library are added to
LD_LIBRARY_PATH after a compilation is run.

Closes #915

11 years agoauto merge of #916 : kballard/cargo/patch-2, r=alexcrichton
bors [Thu, 20 Nov 2014 02:44:21 +0000 (02:44 +0000)]
auto merge of #916 : kballard/cargo/patch-2, r=alexcrichton

This was printing `Flag in rustc-flags has no valuein ...`

11 years agoFix typo in build script error
Kevin Ballard [Thu, 20 Nov 2014 02:18:34 +0000 (18:18 -0800)]
Fix typo in build script error

This was printing `Flag in rustc-flags has no valuein ...`

11 years agoauto merge of #910 : stepancheg/cargo/travis-install, r=alexcrichton
bors [Wed, 19 Nov 2014 19:44:20 +0000 (19:44 +0000)]
auto merge of #910 : stepancheg/cargo/travis-install, r=alexcrichton

* `set -e` (script should crash on first error)
* detect darwin if running not on travis (and `PLATFORM` and `TRAVIS_OS_NAME` variables are unset)

11 years agobetter darwin detection
Stepan Koltsov [Wed, 19 Nov 2014 19:10:21 +0000 (22:10 +0300)]
better darwin detection

11 years agoset -e in .travis.install.deps.sh
Stepan Koltsov [Wed, 19 Nov 2014 19:09:50 +0000 (22:09 +0300)]
set -e in .travis.install.deps.sh

11 years agoauto merge of #907 : alexcrichton/cargo/update-curl, r=alexcrichton
bors [Wed, 19 Nov 2014 07:12:26 +0000 (07:12 +0000)]
auto merge of #907 : alexcrichton/cargo/update-curl, r=alexcrichton

11 years agoUpdate all dependencies to Rust master
Alex Crichton [Wed, 19 Nov 2014 06:29:19 +0000 (22:29 -0800)]
Update all dependencies to Rust master

11 years agoauto merge of #903 : huonw/cargo/metadata-warning, r=alexcrichton
bors [Wed, 19 Nov 2014 05:14:21 +0000 (05:14 +0000)]
auto merge of #903 : huonw/cargo/metadata-warning, r=alexcrichton

It's very bad practice to not have a license in a
published (theoretically) open-source package, since the default
position is all-rights-reserved. Hence, cargo will now warn if this
metadata field is missing from the manifest when creating a package.

Similarly, a lack of description makes using crates.io less nice, since
there's no indication of what a package does other than the name (and
possibly documentation etc. links, but these are often missing too).

These metadata fields are not immediately obvious so `cargo` can be a
little intelligent and provide some hints that they exist.

Closes #902.

11 years agoWarn about missing license/description in `cargo package`.
Huon Wilson [Tue, 18 Nov 2014 12:23:53 +0000 (23:23 +1100)]
Warn about missing license/description in `cargo package`.

It's very bad practice to not have a license in a
published (theoretically) open-source package, since the default
position is all-rights-reserved. Hence, cargo will now warn if this
metadata field is missing from the manifest when creating a package.

Similarly, a lack of description makes using crates.io less nice, since
there's no indication of what a package does other than the name (and
possibly documentation etc. links, but these are often missing too).

These metadata fields are not immediately obvious so `cargo` can be a
little intelligent and provide some hints that they exist.

Closes #902.

11 years agoauto merge of #901 : alexcrichton/cargo/update-faq, r=brson
bors [Tue, 18 Nov 2014 23:44:24 +0000 (23:44 +0000)]
auto merge of #901 : alexcrichton/cargo/update-faq, r=brson

Closes rust-lang/crates.io#21
Closes rust-lang/crates.io#29
Closes #882

11 years agoauto merge of #897 : alexcrichton/cargo/issue-879, r=brson
bors [Tue, 18 Nov 2014 22:59:26 +0000 (22:59 +0000)]
auto merge of #897 : alexcrichton/cargo/issue-879, r=brson

Closes #879

11 years agoUpdate the FAQ and some documentation styles
Alex Crichton [Mon, 17 Nov 2014 22:34:16 +0000 (14:34 -0800)]
Update the FAQ and some documentation styles

Closes rust-lang/crates.io#21
Closes rust-lang/crates.io#29
Closes #882

11 years agoBe sure to include OUT_DIR for doc tests
Alex Crichton [Mon, 17 Nov 2014 18:34:27 +0000 (10:34 -0800)]
Be sure to include OUT_DIR for doc tests

11 years agoauto merge of #906 : eerden/cargo/zsh-completion, r=alexcrichton
bors [Tue, 18 Nov 2014 21:59:27 +0000 (21:59 +0000)]
auto merge of #906 : eerden/cargo/zsh-completion, r=alexcrichton

11 years agoAdd zsh completion for publish command
Ercan Erden [Tue, 18 Nov 2014 21:16:18 +0000 (16:16 -0500)]
Add zsh completion for publish command

11 years agoauto merge of #895 : alexcrichton/cargo/BurntSushi-lto, r=brson
bors [Tue, 18 Nov 2014 20:29:28 +0000 (20:29 +0000)]
auto merge of #895 : alexcrichton/cargo/BurntSushi-lto, r=brson

Closes #759, continuation of #790.

11 years agoauto merge of #893 : alexcrichton/cargo/issue-885, r=brson
bors [Tue, 18 Nov 2014 19:29:29 +0000 (19:29 +0000)]
auto merge of #893 : alexcrichton/cargo/issue-885, r=brson

This fixes a bug in cargo where target executables and libraries would be linked
to plugin native dependencies (not wanted!).

Closes #885

11 years agoauto merge of #894 : alexcrichton/cargo/issue-888, r=brson
bors [Tue, 18 Nov 2014 18:44:31 +0000 (18:44 +0000)]
auto merge of #894 : alexcrichton/cargo/issue-888, r=brson

11 years agoauto merge of #900 : steveklabnik/cargo/one_does_not_simply_make_cargo, r=alexcrichton
bors [Tue, 18 Nov 2014 17:44:33 +0000 (17:44 +0000)]
auto merge of #900 : steveklabnik/cargo/one_does_not_simply_make_cargo, r=alexcrichton

README fix with correct build instructions for building from source.

11 years agoOne does not simply `make` Cargo
Steve Klabnik [Mon, 17 Nov 2014 20:55:54 +0000 (15:55 -0500)]
One does not simply `make` Cargo

README fix with correct build instructions for building from source.

11 years agoauto merge of #899 : linkmauve/cargo/master, r=alexcrichton
bors [Mon, 17 Nov 2014 23:59:34 +0000 (23:59 +0000)]
auto merge of #899 : linkmauve/cargo/master, r=alexcrichton

11 years agoDirectly use python’s urllib instead of curl in etc/dl-snapshot.py
Emmanuel Gil Peyrot [Mon, 17 Nov 2014 20:21:06 +0000 (21:21 +0100)]
Directly use python’s urllib instead of curl in etc/dl-snapshot.py

11 years agoauto merge of #896 : jgillich/cargo/patch-3, r=alexcrichton
bors [Mon, 17 Nov 2014 18:44:30 +0000 (18:44 +0000)]
auto merge of #896 : jgillich/cargo/patch-3, r=alexcrichton

Currently the command output looks like this on Fedora:

```
$ curl https://static.rust-lang.org/rustup.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9866  100  9866    0     0  39592      0 --:--:-- --:--:-- --:--:-- 39622[sudo] password for jakob:
```
The first time I ran it, I didn't even realize it is asking for a password. By using the options for `silent` and `show-error`, we get this:

```
$ curl -sS https://static.rust-lang.org/rustup.sh | sudo bash
[sudo] password for jakob:
```
And errors are still displayed:

```
$ curl -sS https://example.invalid | sudo bash
curl: (6) Could not resolve host: example.invalid
[sudo] password for jakob:
```

11 years agoPolish off the LTO branch
Alex Crichton [Fri, 14 Nov 2014 16:49:01 +0000 (08:49 -0800)]
Polish off the LTO branch

11 years agohide curl progress output
Jakob Gillich [Mon, 17 Nov 2014 18:16:50 +0000 (19:16 +0100)]
hide curl progress output

11 years agoMerge branch 'lto' of https://github.com/BurntSushi/cargo into BurntSushi-lto
Alex Crichton [Fri, 14 Nov 2014 07:10:56 +0000 (23:10 -0800)]
Merge branch 'lto' of https://github.com/BurntSushi/cargo into BurntSushi-lto

11 years agoTighten up the example for a build script
Alex Crichton [Mon, 17 Nov 2014 17:49:40 +0000 (09:49 -0800)]
Tighten up the example for a build script

11 years agoFix panic with plugins and build commands
Alex Crichton [Mon, 17 Nov 2014 17:35:53 +0000 (09:35 -0800)]
Fix panic with plugins and build commands

This fixes a bug in cargo where target executables and libraries would be linked
to plugin native dependencies (not wanted!).

Closes #885

11 years agoauto merge of #891 : ruud-v-a/cargo/patch-1, r=alexcrichton
bors [Mon, 17 Nov 2014 16:59:25 +0000 (16:59 +0000)]
auto merge of #891 : ruud-v-a/cargo/patch-1, r=alexcrichton

The homepage was linking to outdated nightlies. This had been fixed in the readme, but not on the actual website.

11 years agoFix Windows nightly links.
Ruud van Asseldonk [Sun, 16 Nov 2014 22:19:29 +0000 (23:19 +0100)]
Fix Windows nightly links.

The homepage was linking to outdated nightlies. This had been fixed in the readme, but not on the actual website.

11 years agoauto merge of #881 : eerden/cargo/zsh-completion-improvements, r=alexcrichton
bors [Sun, 16 Nov 2014 01:29:24 +0000 (01:29 +0000)]
auto merge of #881 : eerden/cargo/zsh-completion-improvements, r=alexcrichton

Some small improvements:

Add test name completion from Cargo.toml

Add package name completion from Cargo.toml

Rename `--name` to `--\<target-name\>`

11 years agoImprove zsh completion
Ercan Erden [Sat, 15 Nov 2014 00:17:26 +0000 (19:17 -0500)]
Improve zsh completion

Add test name completion from Cargo.toml

Add package name completion from Cargo.toml

Rename --name to --<target-name>

11 years agoauto merge of #878 : alexcrichton/cargo/update-curl, r=brson
bors [Sat, 15 Nov 2014 07:08:58 +0000 (07:08 +0000)]
auto merge of #878 : alexcrichton/cargo/update-curl, r=brson

Closes #873